package com.xjtu.platform.security.avator.impl;

import com.xjtu.platform.common.CurrentUser;
import com.xjtu.platform.security.avator.AvatarService;
import com.xjtu.platform.security.avator.dao.AvatarDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @创建人 MBY381
 * @创建时间 2022/6/30 14:42
 * @描述 暂无
 */

@Service
@Transactional
public class AvatarServiceImpl implements AvatarService {
    @Resource
    private AvatarDao dao;

    @Override
    public void setAvatar(CurrentUser currentUser, String filename) {
        dao.setAvatar(currentUser.getUserId(),filename);
    }
}
